package cn.zlj.nmcc.fegin;

import cn.zlj.nmcc.domain.Blacklist;
import cn.zlj.nmcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@FeignClient(value = "service-user",
        contextId = "userService"
)
public interface UserService {
    @RequestMapping(value = "/user/{id}",method = RequestMethod.GET)
     JSONResult get(@PathVariable("id")Long id);
    @RequestMapping(value="/blacklist/save",method= RequestMethod.POST)
     JSONResult saveOrUpdate(@RequestBody Blacklist blacklist);
}
